This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
XSLProcessor xp = new XSLProcessor(new XML4JLiaison4dom());
String x = "c:\\dxl\\"+doctest.getFirstItem("filename").getText()+".xml";
String s = "transform1.xsl";
StringWriter rw = new StringWriter();
XSLTInputSource xsrc = new XSLTInputSource(x);
XSLTInputSource ssrc = new XSLTInputSource(s);
XSLTResultTarget tout = new XSLTResultTarget(rw);
xp.process(xsrc,ssrc,tout);
getAgentOutput().println("Content-type: text/xml");
getAgentOutput().println(rw.toString());